<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>星球介绍</title>
  <style>
    .iterm {
      width: 500px;
      border: 1px solid red;
      /* float: left; */
       display: inline-block;
      /* vertical-align: top; */
      background-color: rgb(255, 255, 255); 
    }
    .title {
      font-size: 30px;
      background-color: orange;
      color: white;
    }
  </style>
</head>
<body>
  <h1>星球介绍</h1>
  <div class="iterm" style="height: 300px;">
    <h2>木星</h2>
    <img src="" alt="">
    <p>
      <span class="title">木星</span>是太阳系
    </p>
  </div>
  <div class="iterm" style="height: 280px;">
    <h2>地球</h2>
    <img src="" alt="">
    <p>
      <span class="title">地球</span>是太阳系
    </p>
  </div>
</body>
</html>